import { Tabs } from 'antd';
import React from 'react';
import { router } from 'umi';

export default function PageTab(props) {
  const { route } = props;
  return (
    <Tabs
      activeKey={route.key}
      animated={false}
      onTabClick={key => router.push(`/BudgetApproval/SignPlan/${key}`)}
    >
      <Tabs.TabPane tab="资源匹配版" key="ResourceMatching" />
      <Tabs.TabPane tab="年度目标版" key="AnnualTarget" />
    </Tabs>
  );
}
